KeyEventDispatcher

Allows dependent components to enable full KeyEvent dispatch compatibility in core. To use this, implement Component and call the dispatch methods at appropriate times. This must be used for some core compatibility features to function fully.

Types

Link copied to clipboard
interface Component
Implement this in any component that dispatches KeyEvents.

Functions

Link copied to clipboard
open fun dispatchBeforeHierarchy(@NonNull root: @NonNull View, @NonNull event: @NonNull KeyEvent): Boolean
Call this before dispatching a KeyEvent to the view hierarchy.
Link copied to clipboard
open fun dispatchKeyEvent(@NonNull component: @NonNull KeyEventDispatcher.Component, @Nullable root: @Nullable View, callback: @Nullable Window.Callback, @NonNull event: @NonNull KeyEvent): Boolean
Call this when dispatching a key event.